package com.woniu.mapper;


import com.woniu.entity.RbacManager;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *
 */
@Mapper
public interface RbacManagerMapper {

    List<RbacManager> findAll(RbacManager rbac);

    int deleteOne(int id);

    int findCountByName(String account);

    int addOne(RbacManager rbac);

    int editOne(RbacManager rbac);

    int findCountByNameOrId(RbacManager rbac);

    RbacManager findOneByName(String username);

    int editOneStatus(RbacManager rbac);

    RbacManager findOneById(int id);

    int updateInitPwd(int id, String password);
}
